package org.itboys.admin.entity.lasted;


import org.mongodb.morphia.annotations.Entity;
import org.mongodb.morphia.annotations.Indexed;
import org.itboys.mongodb.entity.BaseMongoEntity;
/**
 * 作者：jiangxiong
 * 日期：2017年2月27日
 * 联系方式 ：empty90911@126.com
 * 描述：系统_用户_实体，江雄重新写的
 */
@Entity(value = "SystemUser", noClassnameStored = true)
public class SystemUser extends BaseMongoEntity {




	/**
	 * 用户名加唯一索引
	 */
	@Indexed(unique=true)
	private String userName;
	
	private String password;//md5加密
	
	private String name;//姓名
	

	private String mobile;//电话
	
	private String email;//邮箱

	
	private Integer status;//状态 1有效 0冻结

	private String logo;//头像。半链接

	private Long orgId;//组织ID

	private Integer isSuper;//是否超级用户。超级用户不校验权限




//	private String orgName;// 组织名称不存储，查询

	//2017年7月3日新增，后台用户关联其他平台用户的ID，例如APPID
	private Long platformMemberId;

	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getMobile() {
		return mobile;
	}

	public void setMobile(String mobile) {
		this.mobile = mobile;
	}

	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public Integer getStatus() {
		return status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

	public String getLogo() {
		return logo;
	}

	public void setLogo(String logo) {
		this.logo = logo;
	}

	public Long getOrgId() {
		return orgId;
	}

	public void setOrgId(Long orgId) {
		this.orgId = orgId;
	}

	public Integer getIsSuper() {
		return isSuper;
	}

	public void setIsSuper(Integer isSuper) {
		this.isSuper = isSuper;
	}

	public Long getPlatformMemberId() {
		return platformMemberId;
	}

	public void setPlatformMemberId(Long platformMemberId) {
		this.platformMemberId = platformMemberId;
	}
}
